package com.github.base.dto.log;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class LogDTO {

    @Schema(description = "当前页码(从1开始)", example = "1")
    private Long pageNumber;

    @Schema(description = "每页数据量", example = "20")
    private Long pageSize;

    /**
     * 是否成功 1-是 0-否
     */
    @Schema(description = "是否成功 1-是 0-否", example = "1")
    private Integer success;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始查询时间")
    private String beginTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束查询时间")
    private String endTime;

    /**
     * 模块类型
     */
    @Schema(description = "模块类型")
    private String module;
}
